import sqlite3

def print_sql_results(values):
    print()
    for value in values:
        print(value)

if __name__ == '__main__':
    conn = sqlite3.connect('D:\\gitcodes\\python_study\\sql\\tysql.sqlite')
    cursor = conn.cursor()
    cursor.execute('''select vend_name AS 'vend_name(%)' from Vendors ORDER BY vend_country''')
    print([desc[0] for desc in cursor.description])
    values = cursor.fetchall()
    print_sql_results(values)
    cursor.close()
    conn.close()